from lib.net.index import http

def get_ssd1306_fonts(content):
    """
    获取文本对应1306点阵
    """
    payload = {"content": content}
    resp = http.POST("http://www.hanxiaoxin.cn:8080/poem", payload)
    return resp

def get_ssd1306_fonts12(content):
    """
    获取文本对应1306字库12
    """
    payload = {"content": content}
    resp = http.POST("http://www.hanxiaoxin.cn:8080/poem/font12", payload)
    return resp

if __name__ == "__main__":
    resp = get_ssd1306_fonts("1234")
    print(resp)
